<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	<script>
		var a = new Array("日", "一", "二", "三", "四", "五", "六");
		var week = new Date('2022-4-3').getDay();
		console.log(week)
		var str = "今天是星期" + a[week];
		console.log(str)
		console.log('今天是星期'+a[week])
		console.log("今天是星期" + "日一二三四五六".charAt(new Date().getDay()))
		
		var s="苏苏就是 小苏苏ha";
		console.log(s.charAt(4))//空格也算
	</script>
</html>
